<?php echo $this->Session->flash(); ?>

<?php  $bloqueo = $this->Session->read('bloqueo_avaluo');?>
<table  id="tabla" class="tabla" >
    <thead>
        <tr>

            <th>Codigo</th>
            <th>Nombre</th>
            <th>Vigencia_actualización</th>
            <th>Observaciones</th>
            <th>Avalúo vigente</th>
            <th colspan="3"></th>

        </tr>
    </thead>
    <tbody>

        <?php
        foreach ($propiedades as $propiedad):
            ?>

            <tr>

                <td><?php echo $propiedad['Property']['codigo'] ?></td>
                <td><?php echo $propiedad['Property']['nombre'] ?></td>
                <td><?php echo $propiedad['PropertyAppraisal']['vigencia_actualizacion'] ?></td>
                <td><?php echo $propiedad['PropertyAppraisal']['observaciones'] ?></td>
                <td><?php echo $propiedad['PropertyAppraisal']['avaluo_vigente'] ?></td>
                <td><?php echo $ajax->link("Zonas homogéneas", array('controller' => 'UniformZones', "action" => "index", $propiedad['Property']['id']), array('update' => 'catastral', 'complete' => 'mayusculas()', 'indicator' => 'loading')) ?></td>
                <td><?php echo $ajax->link("Informacion Catastral", array('controller' => 'PropertyAppraisals', "action" => "add_catastral", $propiedad['PropertyAppraisal']['id']), array('update' => 'catastral', 'complete' => 'mayusculas()', 'indicator' => 'loading')) ?></td>
                <td><?php if($bloqueo=="No")echo $ajax->link($html->image("delete.png", array('width' => '30', 'heigth' => '30', 'alt' => 'Eliminar')), array('controller' => "PropertyAppraisals", "action" => "delete", $propiedad['PropertyAppraisal']['id'], $propiedad['PropertyAppraisal']['property_id']), array('escape' => false, 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'), '¿Esta seguro de eliminar este registro? ') ?></td>

            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php if($bloqueo=="No")echo $ajax->link($html->image("reload.png", array('width' => '30', 'heigth' => '30', 'alt' => 'Cargar Predios')), array('controller' => "PropertyAppraisals", "action" => "update_properties", $idap), array('escape' => false, 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'), null) ?>


<?php echo $this->Session->flash(); ?>

